package com.xxx.idam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xxx.idam.dao.IAccountDao;
import com.xxx.idam.domain.Account;
import com.xxx.idam.service.IAccountService;

@Service
@Transactional
public class AccountServiceImpl implements IAccountService {

	@Autowired
	private IAccountDao accountDaoImpl;
	
	@Override
	public boolean verify(String username, String password) {
		// TODO Auto-generated method stub
		Account account = accountDaoImpl.read(username);
		
		if (password.equals(account.getPassword())) {
			return true;
		} else {
			return false;
		}
	}

}
